package com.example.test.启动线程.可重入锁;

public class SynKua {

    public static void main(String[] args) {
        pringA();
    }


    private synchronized static void pringA(){
        System.out.println("第一次打印");
        pringB();
    }

    private synchronized static void pringB(){
        System.out.println("第二次打印");
    }
}
